using ContactPrinter.Model.Interfaces;

namespace ContactPrinter.Model
{
    public class Email : CategorizedAttributeBase, IEmail
    {
        public Email(string address, Category category)
        {
            Address = address;
            Type = category;
        }

        #region Implementation of IEmail

        public string Address { get; set; }

        #endregion

        public override string ToString()
        {
            return string.Format("{0}: {1}", Type, Address);
        }
    }
}